import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;


public class HandlingFrames {

	public static void main(String[] args) {
		
		
		WebDriver Driver = new FirefoxDriver();
		Driver.get("https://netbanking.hdfcbank.com/netbanking/");
		System.out.println(Driver.getPageSource());
		//use Css Selector for webelements
		
		
		//First switch the Driver to frame using switchtoframe method and write the index # in intargument
		Driver.switchTo().frame(1);
		
		Driver.findElement(By.cssSelector("input[class='input_password']")).sendKeys("kulwinder");	

	}

}
